function validate_createCB(form)
{
	var regex = new RegExp("\\S.*");
	if (!regex.test(form.createCB_title.value) || (form.createCB_vis[1].checked && !regex.test(form.createCB_pass.value)))
	{
		alert("One or more fields have invalid input!");
		return false;
	}
	return true;
}

function validate_createPP(form)
{
	var regex = new RegExp("\\S.*");
	if (!regex.test(form.createPP_url.value) || !regex.test(form.createPP_description.value))
	{
		alert("One or more fields have invalid input!");
		return false;
	}
	return true;
}

function validate_comment(form)
{
	var regex = new RegExp("\\S.*");
	if (!regex.test(form.comment.value))
	{
		alert("Comment must have at least one non-whitespace character");
		return false;
	}
	return true;
}
